<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>商品管理</title>
		<link rel="stylesheet" href="__AGENT__/css/iconfont.css" />
		<link rel="stylesheet" href="__AGENT__/css/css.css" />
		<link rel="stylesheet" href="__PUBLIC__/static/layui/css/layui.css" media="all">
	</head>

	<body>
		{include file="public/header" /}
		<div class="index_conbox">
			<div class="index_content clearfix">
				{include file="public/lefter" /}
				<div class="right">
					<div class="rigtop">
						<span class="title">批量入库</span>
						<span style="float:  right;">
						</span>
					</div>
					
					<div style="width: 100%;text-align: center;margin-top: 30px;">
						<a href="__AGENT__/export_ruku.xlsx">下载模板</a></span>
						<span style="font-size: 18px;color: #0062CC;">
						</span>
					</div>
					<div style="width: 100%;text-align: center;margin-top: 30px;">
						<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('padd_ok1')}" enctype="multipart/form-data" onsubmit="return toVaild()">
							<div class="form-group">
								<div class="input-group col-sm-4">
									<span>导入文件</span>
									<input type="file" name="myfile" id="myfile" value="" />
								</div>
								<div  style="width: 400px;margin: 20px auto;">
								<button class="htcxbtn" type="button" onclick="history.go(-1)"><i class="fa fa-save"></i> 返回</button>&nbsp;&nbsp;
								<button class="htcxbtn" type="submit" onclick=" return check_s()" id="submit"><i class="fa fa-save"></i> 开始导入</button>&nbsp;&nbsp;
								</div>
							</div>
						</form>
					</div>

				</div>
			</div>
		</div>
		{include file="public/footer" /}
	</body>

</html>
<script type="text/javascript" src="__PUBLIC__/static/js/assist.js"></script>
<script type="text/javascript">
	function check_s(){
		if($("#myfile").val()==""){
			alert("请先下载模板编辑后点击选择文件上传!");
			return false;
		}
	}
</script>